package com.starlink.model.dtomapper;

import com.starlink.model.domain.BannerJumpDO;
import com.starlink.model.request.BannerJumpRequest;
import com.starlink.model.vo.BannerJumpVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface BannerJumpDtoMapper {

    BannerJumpDtoMapper INSTANCE = Mappers.getMapper(BannerJumpDtoMapper.class);

    /**
    * DO to VO
    * @param bannerJumpDO
    * @return
    */
    BannerJumpVO do2VO(BannerJumpDO bannerJumpDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    BannerJumpDO request2DO(BannerJumpRequest request);
}
